<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>{:C('WEB_SITE_TITLE')}</title>
	<link href="__STATIC__/bootstrap/css/bootstrap.css" rel="stylesheet">
	<link href="__STATIC__/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
	<link href="__STATIC__/bootstrap/css/docs.css" rel="stylesheet">
	<link href="__STATIC__/bootstrap/css/onethink.css" rel="stylesheet">
	<link rel="stylesheet" type="text/css" href="__STATIC__/bootstrap/css//base.css" media="all">
    <link rel="stylesheet" type="text/css" href="__STATIC__/bootstrap/css/common.css" media="all">
    <link rel="stylesheet" type="text/css" href="__STATIC__/bootstrap/css/module.css">
    <!-- <link rel="stylesheet" type="text/css" href="__STATIC__/bootstrap/css//style.css" media="all"> -->
    <!-- <link rel="stylesheet" type="text/css" href="__STATIC__/bootstrap/css//my.css" media="all"> -->
	<!-- <link rel="stylesheet" type="text/css" href="__STATIC__/bootstrap/css//{$Think.config.COLOR_STYLE}.css" media="all"> -->
	<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
	<!--[if lt IE 9]>
	<script src="__STATIC__/bootstrap/js/html5shiv.js"></script>
	<![endif]-->
	<block name="style"></block>
	<link rel="stylesheet" type="text/css" href="__STATIC__/bootstrap/css/main.css">
	<!--[if lt IE 9]>
	<script type="text/javascript" src="__STATIC__/jquery-1.10.2.min.js"></script>
	<![endif]-->
	<!--[if gte IE 9]><!-->
	<!-- <script type="text/javascript" src="__STATIC__/jquery-2.0.3.min.js"></script>
	<script type="text/javascript" src="__STATIC__/bootstrap/js/bootstrap.min.js"></script> -->
	<script src="__STATIC__/bootstrap/js/jquery-1.11.3.js"></script>
	<script src="__STATIC__/bootstrap/js/index.js" type="text/javascript"></script>
	<script src="__STATIC__/bootstrap/js/frame.js" type="text/javascript"></script>
	<!-- <script src="__STATIC__/bootstrap/js/my.js" type="text/javascript"></script> -->
	
	<script type="text/javascript" src="__STATIC__/jquery-2.0.3.min.js"></script>
    <script type="text/javascript" src="__JS__/jquery.mousewheel.js"></script>
    <script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
    <script src="__JS__/tishi.js" type="text/javascript"></script>
	<style>
		#adver_tabl img{width: 50px;height:50px;}
		#adver_tabl tr{margin-top:10px; display: block;}
		#textc{width: 70%;}
		.form-item b{font-size: 16px;margin-top: 10px;display: inline-block;}
		.form-item input{width: 46%; margin-left: 20px; }

		.but{width: 120px; background-color:rgb(151,31,32) ; border-radius: 5px; color:#fff;height: 30px;margin-left: 44%;}
		.myred{color:red;}
		.mygreen{color:#fff333;}
		.left_r{margin-left: 400px;}

		.container { margin:50px auto; max-width:728px;text-align:center;font-family:Arial;}
		.btn {background-color:#ED5565; color:#fff; padding:20px; margin:10px 30px; border-radius:5px; border-bottom:3px solid #DA4453;}

			
	</style>
	
	<link href="__CSS__/normalize.css" rel="stylesheet" type="text/css">
	<link rel="stylesheet" href="__CSS__/animate.min.css">
	<link rel="stylesheet" href="__CSS__/jquery.gDialog.css">
	<!-- <script src="__JS__/jquery.min.js"></script> -->
	<script src="__JS__/jquery.gDialog.js"></script>
	</head>
	
<body>
	
	<div id="head" class="header">
		<div class="logo">
        <a href="index.html" target="_self"></a>
		</div>
		<div class="info">
			<ul>
            	<li><a href="index.html">返回首页</a></li>
                <li><a href="#">修改密码</a></li>
                 <li><a href="#">个人设置</a></li>
            </ul>

		</div>
	</div>	<!--未定义-->
	
	<div class="clear"></div>
	<div class="nav" id="main">

		<!-- left -->
        <div id="guid">
			<p>管理控制台</p>
			<ul id="accordion" class="accordion">
		<li>
			<div class="link"><i class="fa fa-paint-brush"></i>云网站<i class="fa fa-chevron-down"></i></div>
			<ul class="submenu"  style="display:block;">
						<li><a href="__MODULE__/Company/index" target="_self">公司设置</a></li>
						<li><a href="__MODULE__/Product/index" target="_self">产品设置</a></li>
						<li><a href="__MODULE__/Gname/index" target="_self">广告设置</a></li>
						<li><a href="__MODULE__/Anli/index" target="_self">客户案例</a></li>
						<li><a href="__MODULE__/team/index">团队风采</a></li>
						<li class="tishi_1"><a href="#">留言查看</a></li>
						<li><a href="__MODULE__/Mainsite/index" target="_self">三屏主站</a></li>
						<li class="tishi_1"><a href="#">云网站浏览</a></li>

			</ul>

		</li>
		<li>
			<div class="link"><i class="fa fa-code"></i>云搜索<i class="fa fa-chevron-down"></i></div>
			<ul class="submenu">
				<li class="tishi_1"><a href="#" target="_self">搜索发布</a></li>
				<li class="tishi_1"><a href="#">搜索查看</a></li>
				<li class="tishi_1"><a href="#">搜索展示</a></li>
				<li class="tishi_1"><a href="#">行业分类</a></li>
				<li class="tishi_1"><a href="#">草稿箱</a></li>
				<li class="tishi_1"><a href="#">搜索发布必读</a></li>


			</ul>
		</li>
		
		<li><div class="link"><i class="fa fa-globe"></i>云客服<i class="fa fa-chevron-down"></i></div>
			<ul class="submenu">
						<li class="tishi_1"><a href="#" target="_self">QQ客服在线</a></li>
						<li class="tishi_1"><a href="#" target="_self">微信二维码</a></li>
						<li class="tishi_1"><a href="#" target="_self">二维码生成</a></li>
						<li class="tishi_1"><a href="#">优快推云客服</a></li>
						<li class="tishi_1"><a href="#">云客服管理中心</a></li>
						

			</ul>
		</li>
		<li><div class="link"><i class="fa fa-globe"></i>新闻软文<i class="fa fa-chevron-down"></i></div>
			<ul class="submenu">
						<li class="tishi_1"><a href="#">新闻软文发布</a></li>
						<li class="tishi_1"><a href="#">新闻APP发布</a></li>
						


			</ul>
		</li>
		<li><div class="link"><i class="fa fa-globe"></i>云推广<i class="fa fa-chevron-down"></i></div>
			<ul class="submenu">
						<li class="tishi_1"><a href="#">新浪微博推广</a></li>
						<li class="tishi_1"><a href="#">百度知道</a></li>
						<li class="tishi_1"><a href="#">论坛资源推广</a></li>
			</ul>
		</li>
		<li>
			<div class="link"><i class="fa fa-mobile"></i>云应用<i class="fa fa-chevron-down">
			</i></div>
			<ul class="submenu">
						<li class="tishi_1"><a href="#">代写软文</a></li>
						<li class="tishi_1"><a href="#">云搜索代发</a></li>
						<li class="tishi_1"><a href="#">关键词匹配</a></li>
						<li><a href="buySave.html">在线充值</a></li>
			</ul>
		</li>
	</ul>
		</div>
        <!-- left end -->
        <div id="main_show">
       <p id="web_gg">公告：欢迎您进入优快推推广平台。企业要推广，就用优快推<span>优快推1.0</span></p> 
       </div>
	<div id="could_web" style="display:block;">
	<div id="advertisement" class="product1" style="display:block;">
							<div class="adver_form">
							<h2>广告添加</h2>
							<hr>
							<div class="tab-content" style="margin-top: 30px;">
								<form action="{:U('gn/addAction')}" method="post" class="form-horizontal"  onsubmit="return yanzheng(this)" data_url="{:U('gn/js_ajax')}">
								
									<!-- <input type="hidden" name="cid" value="<?php echo $_SESSION['home']['cid']?>"> -->
									<div >
										<div class="form-item">
												<b>图片标题:</b>
												<input type="text" name="kname" placeholder="标题不能为空"   maxlength="30" id="mytitle"  class="xie">
										</div>

										<div id="le" class="left_r">
												
										</div>
										
										<div class="form-item">
												<b>链接地址:</b>
												<input type="text" name="a_lian"  value="{$info.title|default=''}" height="50" placeholder="格式：http://"  class="xie1">
										</div>

										<div id="mymessage" class="left_r">
												
										</div>
											
							
										<div class="form-item">
											
											<input type="file" id="upload_picture">
											<input type="hidden" name="icon" id="icon" value="{$info['icon']|default=''}"/>
											<div class="upload-img-box">
											<notempty name="info['icon']">
												
											</notempty>
											</div>
										</div>
							
							
										<script type="text/javascript">
										/*判断验证*/
											function yanzheng(obj){

											var url = $(obj).attr('data_url');
											var xie = $('.xie').val();
											var xie1 = $('.xie1').val();
											// alert(xie);

											$.ajax({
												type:'get',
									    		url:url,
									    		dataType:'json',
									    		success:function(data){
									    			if(data['status']==false){
												    				
						                               	$.gDialog.confirm("Are You Sure?-------------亲^_^-图片还未添加", {
														    title: "企优托提醒您,信息未完善",
															animateIn : "rollIn",
														    animateOut: "rollOut"
													  });
						                               	return false;
									    				
									    			}

									    		}
									    	});

											if(xie =="" || xie1 ==""){

				                               	$.gDialog.confirm("Are You Sure?-------------亲^_^-请按步骤完善信息", {
											    title: "企优托提醒您,信息未完善",
												animateIn : "rollIn",
												animateOut: "rollOut"
											  });
				                               return false;
			                               }
			                               // return false;
										
										} 


										//上传图片
									    /* 初始化上传插件 */
										$("#upload_picture").uploadify({
									        "height"          : 30,
									        "swf"             : "__STATIC__/uploadify/uploadify.swf",
									        "fileObjName"     : "download",
									        "buttonText"      : "上传图片",
									        "uploader"        : "{:U('gn/uploadPicture',array('session_id'=>session_id()))}",
									        "width"           : 120,
									        'removeTimeout'	  : 1,
									        'fileTypeExts'	  : '*.jpg; *.png; *.gif;',
									        "onUploadSuccess" : uploadPicture,
									        'onFallback' : function() {
									            alert('未检测到兼容版本的Flash.');
									        }
									    });
							
							
							
										function uploadPicture(file, data){
									    	var data = $.parseJSON(data);
									    	var src = '';
									        if(data.status){
									        	$("#icon").val(data.id);
									        	src = data.url || '__ROOT__' + data.path;
									        	$("#icon").parent().find('.upload-img-box').html(
									        		'<div class="upload-pre-item"><img src="' + src + '"/></div>'
									        	);
									        } else {
									        	updateAlert(data.info);
									        	setTimeout(function(){
									                $('#top-alert').find('button').click();
									                $(that).removeClass('disabled').prop('disabled',false);
									            },1500);
									        }
									    }
										</script>
									</div>
									
									<div class="form-item">
										
										<button type="submit" class="but " id="but_q" >确 定</button>
										<!-- <a href="#"></a> -->
									</div>
							
								</form>
							</div>
						
						</div><!--结束于广告设置-->
                        <div id="tuiguang">
			<div class="xinlang product1">
				<p> ！</p>
			</div>
			<div class="baidu product1">
				<p> </p>
			</div>
			<div class="luntan product1">
				<p> </p>
			</div>
		</div>
</div>
<block name="script">
	<script type="text/javascript">
		function del(obj){
	    	var k_id = $(obj).attr("k_id");
	    	var url = $(obj).attr('date_url');
	    	
	    	$.ajax({
	    		type:'get',
	    		url:url,
	    		data:'k_id='+k_id,
	    		dataType:'json',
	    		success:function(date){
	    			// alert(date.msg);
	    			// document.location.reload();
	    			$.gDialog.confirm("Are You Sure?-------------亲^_^-删除成功", {
					    title: "企优托提醒您：",
						animateIn : "rollIn",
					    animateOut: "rollOut"
				  	});
	    			// document.location.reload();
	    			$(obj).parent().parent().remove();
	    		}

	    	})

	    	return false;
	    }


		
		

	</script>

</block>

</body>
</html>